package com.zdp.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 轮播图 
 * </p>
 *
 * @author sesshomaru
 * @since 2021-07-29
 */
@TableName("carousel")
public class Carousel implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 图片 图片地址
     */
    private String imageUrl;

    /**
     * 背景色 背景颜色
     */
    private String backgroundColor;

    /**
     * 商品id 商品id
     */
    private String itemId;

    /**
     * 商品分类id 商品分类id
     */
    private String catId;

    /**
     * 轮播图类型 轮播图类型，用于判断，可以根据商品id或者分类进行页面跳转，1：商品 2：分类
     */
    private Integer type;

    /**
     * 轮播图展示顺序 轮播图展示顺序，从小到大
     */
    private Integer sort;

    /**
     * 是否展示 是否展示，1：展示    0：不展示
     */
    private Integer isShow;

    /**
     * 创建时间 创建时间
     */
    @JsonIgnore
    private LocalDateTime createTime;

    /**
     * 更新时间 更新
     */
    @JsonIgnore
    private LocalDateTime updateTime;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getBackgroundColor() {
        return backgroundColor;
    }

    public void setBackgroundColor(String backgroundColor) {
        this.backgroundColor = backgroundColor;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getCatId() {
        return catId;
    }

    public void setCatId(String catId) {
        this.catId = catId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Carousel() {
    }

    public Carousel(String id, String imageUrl, String backgroundColor, String itemId, String catId, Integer type, Integer sort, Integer isShow, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.imageUrl = imageUrl;
        this.backgroundColor = backgroundColor;
        this.itemId = itemId;
        this.catId = catId;
        this.type = type;
        this.sort = sort;
        this.isShow = isShow;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Carousel{" +
        "id=" + id +
        ", imageUrl=" + imageUrl +
        ", backgroundColor=" + backgroundColor +
        ", itemId=" + itemId +
        ", catId=" + catId +
        ", type=" + type +
        ", sort=" + sort +
        ", isShow=" + isShow +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
